<!DOCTYPE html>
<html lang="zh-CN">

<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0, maximum-scale=1.0, user-scalable=no">
    <title>用药提醒</title>
    <script src="https://cdn.tailwindcss.com"></script>
    <link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/font-awesome/6.4.0/css/all.min.css">
    <style>
        * {
            margin: 0;
            padding: 0;
            box-sizing: border-box;
        }

        body {
            font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
            background: linear-gradient(135deg, #E8EAF6 0%, #F3E5F5 50%, #FCE4EC 100%);
            min-height: 100vh;
        }

        .glass-card {
            background: rgba(255, 255, 255, 0.95);
            backdrop-filter: blur(20px);
            border: 1px solid rgba(255, 255, 255, 0.3);
        }

        @keyframes slideIn {
            from {
                opacity: 0;
                transform: translateX(-20px);
            }

            to {
                opacity: 1;
                transform: translateX(0);
            }
        }

        .animate-slide {
            animation: slideIn 0.4s ease-out;
        }

        .time-badge {
            transition: all 0.3s;
        }

        .time-badge:hover {
            transform: scale(1.05);
        }

        /* 手机状态栏占位 */
        .status-bar-spacer {
            height: 28px;
            background: rgba(255, 255, 255, 0.95);
            backdrop-filter: blur(20px);
            position: relative;
            z-index: 999;
        }
    </style>
</head>

<body>
    <!-- 手机状态栏占位 -->
    <div class="status-bar-spacer"></div>

    <div class="min-h-screen pb-24">
        <!-- 顶部导航 -->
        <div class="glass-card px-5 py-4">
            <div class="flex items-center justify-between mb-4">
                <div class="flex items-center gap-3">
                    <button onclick="history.back()"
                        class="w-10 h-10 bg-white rounded-xl flex items-center justify-center shadow-sm">
                        <i class="fas fa-arrow-left text-gray-700"></i>
                    </button>
                    <div>
                        <h1 class="text-lg font-bold text-gray-900">用药提醒</h1>
                        <p class="text-xs text-gray-500">今天还有3个待服用</p>
                    </div>
                </div>
                <button
                    class="px-4 py-2 bg-black text-white rounded-xl text-sm font-semibold shadow-lg hover:scale-105 transition-transform">
                    <i class="fas fa-plus mr-1"></i> 添加
                </button>
            </div>

            <!-- 日期选择 -->
            <div class="flex items-center gap-2 overflow-x-auto scrollbar-hide pb-2">
                <div
                    class="time-badge px-4 py-2 bg-white border-2 border-gray-200 rounded-xl text-sm whitespace-nowrap">
                    <div class="text-xs text-gray-500">周一</div>
                    <div class="font-semibold text-gray-700">10/14</div>
                </div>
                <div
                    class="time-badge px-4 py-2 bg-white border-2 border-gray-200 rounded-xl text-sm whitespace-nowrap">
                    <div class="text-xs text-gray-500">周二</div>
                    <div class="font-semibold text-gray-700">10/15</div>
                </div>
                <div class="time-badge px-4 py-2 bg-black text-white rounded-xl text-sm whitespace-nowrap shadow-lg">
                    <div class="text-xs text-gray-300">周三</div>
                    <div class="font-bold">10/16</div>
                </div>
                <div
                    class="time-badge px-4 py-2 bg-white border-2 border-gray-200 rounded-xl text-sm whitespace-nowrap">
                    <div class="text-xs text-gray-500">周四</div>
                    <div class="font-semibold text-gray-700">10/17</div>
                </div>
                <div
                    class="time-badge px-4 py-2 bg-white border-2 border-gray-200 rounded-xl text-sm whitespace-nowrap">
                    <div class="text-xs text-gray-500">周五</div>
                    <div class="font-semibold text-gray-700">10/18</div>
                </div>
            </div>
        </div>

        <!-- 统计概览 -->
        <div class="px-5 py-5">
            <div class="glass-card rounded-3xl p-5 shadow-lg">
                <div class="grid grid-cols-3 gap-4 text-center">
                    <div>
                        <div
                            class="w-14 h-14 mx-auto mb-2 bg-gradient-to-br from-green-400 to-emerald-500 rounded-2xl flex items-center justify-center shadow-lg">
                            <i class="fas fa-check text-white text-xl"></i>
                        </div>
                        <div class="text-2xl font-bold text-gray-900">2</div>
                        <div class="text-xs text-gray-500 mt-1">已完成</div>
                    </div>
                    <div>
                        <div
                            class="w-14 h-14 mx-auto mb-2 bg-gradient-to-br from-orange-400 to-amber-500 rounded-2xl flex items-center justify-center shadow-lg">
                            <i class="fas fa-clock text-white text-xl"></i>
                        </div>
                        <div class="text-2xl font-bold text-gray-900">3</div>
                        <div class="text-xs text-gray-500 mt-1">待服用</div>
                    </div>
                    <div>
                        <div
                            class="w-14 h-14 mx-auto mb-2 bg-gradient-to-br from-purple-400 to-pink-500 rounded-2xl flex items-center justify-center shadow-lg">
                            <i class="fas fa-chart-line text-white text-xl"></i>
                        </div>
                        <div class="text-2xl font-bold text-gray-900">89%</div>
                        <div class="text-xs text-gray-500 mt-1">完成率</div>
                    </div>
                </div>
            </div>
        </div>

        <!-- 时间线提醒 -->
        <div class="px-5 pb-6">
            <!-- 早上 -->
            <div class="mb-6">
                <div class="flex items-center gap-2 mb-3">
                    <div
                        class="w-8 h-8 bg-gradient-to-br from-amber-400 to-orange-500 rounded-xl flex items-center justify-center shadow-md">
                        <i class="fas fa-sun text-white text-sm"></i>
                    </div>
                    <span class="font-bold text-gray-900">早上</span>
                    <span class="text-sm text-gray-500">(08:00 - 12:00)</span>
                </div>

                <div class="space-y-3">
                    <div class="animate-slide glass-card rounded-3xl p-4 shadow-lg border-l-4 border-green-400">
                        <div class="flex items-center gap-4">
                            <div
                                class="w-16 h-16 bg-gradient-to-br from-green-100 to-emerald-100 rounded-2xl flex items-center justify-center flex-shrink-0">
                                <span class="text-3xl">✅</span>
                            </div>
                            <div class="flex-1 min-w-0">
                                <h3 class="font-bold text-gray-900 mb-1">布洛芬缓释胶囊</h3>
                                <p class="text-xs text-gray-500 mb-2">08:00 · 每次1粒，温水送服</p>
                                <div class="flex items-center gap-2">
                                    <span
                                        class="px-3 py-1 bg-green-100 text-green-700 rounded-lg text-xs font-semibold">已完成</span>
                                    <span class="text-xs text-gray-400">08:05 已服用</span>
                                </div>
                            </div>
                        </div>
                    </div>
                </div>
            </div>

            <!-- 中午 -->
            <div class="mb-6">
                <div class="flex items-center gap-2 mb-3">
                    <div
                        class="w-8 h-8 bg-gradient-to-br from-blue-400 to-indigo-500 rounded-xl flex items-center justify-center shadow-md">
                        <i class="fas fa-cloud-sun text-white text-sm"></i>
                    </div>
                    <span class="font-bold text-gray-900">中午</span>
                    <span class="text-sm text-gray-500">(12:00 - 14:00)</span>
                </div>

                <div class="space-y-3">
                    <div class="animate-slide glass-card rounded-3xl p-4 shadow-lg border-l-4 border-blue-400"
                        style="animation-delay: 0.1s">
                        <div class="flex items-center gap-4">
                            <div
                                class="w-16 h-16 bg-gradient-to-br from-blue-100 to-indigo-100 rounded-2xl flex items-center justify-center flex-shrink-0">
                                <span class="text-3xl">💊</span>
                            </div>
                            <div class="flex-1 min-w-0">
                                <h3 class="font-bold text-gray-900 mb-1">复方感冒灵颗粒</h3>
                                <p class="text-xs text-gray-500 mb-2">12:00 · 1袋，温开水冲服</p>
                                <div class="flex items-center gap-2">
                                    <span
                                        class="px-3 py-1 bg-orange-100 text-orange-700 rounded-lg text-xs font-semibold animate-pulse">⏰
                                        待服用</span>
                                    <button
                                        class="px-3 py-1 bg-black text-white rounded-lg text-xs font-semibold hover:scale-105 transition-transform">
                                        标记完成
                                    </button>
                                </div>
                            </div>
                        </div>
                    </div>

                    <div class="animate-slide glass-card rounded-3xl p-4 shadow-lg border-l-4 border-purple-400"
                        style="animation-delay: 0.2s">
                        <div class="flex items-center gap-4">
                            <div
                                class="w-16 h-16 bg-gradient-to-br from-purple-100 to-pink-100 rounded-2xl flex items-center justify-center flex-shrink-0">
                                <span class="text-3xl">🧪</span>
                            </div>
                            <div class="flex-1 min-w-0">
                                <h3 class="font-bold text-gray-900 mb-1">维生素C片</h3>
                                <p class="text-xs text-gray-500 mb-2">12:30 · 每次2片，餐后服用</p>
                                <div class="flex items-center gap-2">
                                    <span
                                        class="px-3 py-1 bg-orange-100 text-orange-700 rounded-lg text-xs font-semibold animate-pulse">⏰
                                        待服用</span>
                                    <button
                                        class="px-3 py-1 bg-black text-white rounded-lg text-xs font-semibold hover:scale-105 transition-transform">
                                        标记完成
                                    </button>
                                </div>
                            </div>
                        </div>
                    </div>
                </div>
            </div>

            <!-- 晚上 -->
            <div class="mb-6">
                <div class="flex items-center gap-2 mb-3">
                    <div
                        class="w-8 h-8 bg-gradient-to-br from-indigo-500 to-purple-600 rounded-xl flex items-center justify-center shadow-md">
                        <i class="fas fa-moon text-white text-sm"></i>
                    </div>
                    <span class="font-bold text-gray-900">晚上</span>
                    <span class="text-sm text-gray-500">(18:00 - 22:00)</span>
                </div>

                <div class="space-y-3">
                    <div class="animate-slide glass-card rounded-3xl p-4 shadow-lg border-l-4 border-teal-400"
                        style="animation-delay: 0.3s">
                        <div class="flex items-center gap-4">
                            <div
                                class="w-16 h-16 bg-gradient-to-br from-teal-100 to-cyan-100 rounded-2xl flex items-center justify-center flex-shrink-0">
                                <span class="text-3xl">💉</span>
                            </div>
                            <div class="flex-1 min-w-0">
                                <h3 class="font-bold text-gray-900 mb-1">盐酸小檗碱片</h3>
                                <p class="text-xs text-gray-500 mb-2">18:00 · 每次3片</p>
                                <div class="flex items-center gap-2">
                                    <span
                                        class="px-3 py-1 bg-orange-100 text-orange-700 rounded-lg text-xs font-semibold animate-pulse">⏰
                                        待服用</span>
                                    <button
                                        class="px-3 py-1 bg-black text-white rounded-lg text-xs font-semibold hover:scale-105 transition-transform">
                                        标记完成
                                    </button>
                                </div>
                            </div>
                        </div>
                    </div>
                </div>
            </div>

            <!-- 服药小贴士 -->
            <div class="glass-card rounded-3xl p-5 shadow-lg bg-gradient-to-br from-pink-50 to-purple-50">
                <div class="flex items-start gap-3">
                    <div
                        class="w-10 h-10 bg-gradient-to-br from-yellow-400 to-orange-500 rounded-xl flex items-center justify-center flex-shrink-0 shadow-lg">
                        <span class="text-xl">💡</span>
                    </div>
                    <div class="flex-1">
                        <h3 class="font-bold text-gray-900 mb-1">温馨提示</h3>
                        <p class="text-sm text-gray-600 leading-relaxed">
                            按时服药有助于药物发挥最佳效果。如果不慎漏服，请不要一次服用双倍剂量哦！
                        </p>
                    </div>
                </div>
            </div>
        </div>
    </div>

    <!-- 底部导航 -->
    <div class="fixed bottom-0 left-0 right-0 glass-card px-5 py-3 border-t border-gray-100">
        <div class="flex items-center justify-around">
            <a href="index.html" class="flex flex-col items-center gap-1 text-gray-400">
                <div class="w-12 h-12 bg-white rounded-2xl flex items-center justify-center shadow-sm">
                    <i class="fas fa-home"></i>
                </div>
                <span class="text-xs font-medium">首页</span>
            </a>
            <a href="medicine_management.html" class="flex flex-col items-center gap-1 text-gray-400">
                <div class="w-12 h-12 bg-white rounded-2xl flex items-center justify-center shadow-sm">
                    <i class="fas fa-pills"></i>
                </div>
                <span class="text-xs font-medium">药品</span>
            </a>
            <a href="add_medicine.html" class="flex flex-col items-center gap-1 text-gray-400">
                <div class="w-12 h-12 bg-white rounded-2xl flex items-center justify-center shadow-sm">
                    <i class="fas fa-plus-circle"></i>
                </div>
                <span class="text-xs font-medium">添加</span>
            </a>
            <a href="reminder.html" class="flex flex-col items-center gap-1 text-purple-600">
                <div
                    class="w-12 h-12 bg-gradient-to-br from-purple-500 to-pink-500 rounded-2xl flex items-center justify-center shadow-lg">
                    <i class="fas fa-bell text-white"></i>
                </div>
                <span class="text-xs font-semibold">提醒</span>
            </a>
            <a href="profile.html" class="flex flex-col items-center gap-1 text-gray-400">
                <div class="w-12 h-12 bg-white rounded-2xl flex items-center justify-center shadow-sm">
                    <i class="fas fa-user"></i>
                </div>
                <span class="text-xs font-medium">我的</span>
            </a>
        </div>
    </div>

    <script>
        // 日期切换
        document.querySelectorAll('.time-badge').forEach(badge => {
            badge.addEventListener('click', function () {
                document.querySelectorAll('.time-badge').forEach(b => {
                    b.classList.remove('bg-black', 'text-white', 'shadow-lg');
                    b.classList.add('bg-white', 'border-2', 'border-gray-200');
                    b.querySelector('div:first-child').classList.remove('text-gray-300');
                    b.querySelector('div:first-child').classList.add('text-gray-500');
                });
                this.classList.remove('bg-white', 'border-2', 'border-gray-200');
                this.classList.add('bg-black', 'text-white', 'shadow-lg');
                this.querySelector('div:first-child').classList.remove('text-gray-500');
                this.querySelector('div:first-child').classList.add('text-gray-300');
            });
        });
    </script>
</body>

</html>